package com.fastdfs;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.jmx.support.RegistrationPolicy;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * 测试驱动类
 * 
 * @author tobato
 *
 */
@EnableWebMvc
@SpringBootApplication
@EnableTransactionManagement
@ComponentScan({"css.sword","css.redis","com.fastdfs"})
@MapperScan(basePackages = {"css.sword"})
@EnableAutoConfiguration(exclude = {
        org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class
})
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
public class FastdfsTestApplication {
    public static void main(String[] args) {
        SpringApplication.run(FastdfsTestApplication.class, args);
    }

}
